package route

import (
	"github.com/gin-gonic/gin"
	"go-backend-simple-scaffold/global"
)

func Setup(gin *gin.Engine) {
	// 基础路由前缀
	baseGroup := gin.Group(global.GBSS_CONFIG.System.RouterPrefix)

	// 公开路由
	pubGroup := baseGroup.Group("pub")
	NewLoginRoute(pubGroup)

	// 私有路由
	priGroup := baseGroup.Group("pri")
	NewProfileRoute(priGroup)
	NewUserRoute(priGroup)
}
